package request

import (
	"gitee.com/cjsn/topsdk/ability654/domain"
	"gitee.com/cjsn/topsdk/util"
)

type TmallServicecenterWorkerCreateRequest struct {
	/*
	   11     */
	WorkerDto *domain.TmallServicecenterWorkerCreateWorkerDto `json:"worker_dto,omitempty" required:"false" `
}

func (s *TmallServicecenterWorkerCreateRequest) SetWorkerDto(v domain.TmallServicecenterWorkerCreateWorkerDto) *TmallServicecenterWorkerCreateRequest {
	s.WorkerDto = &v
	return s
}

func (req *TmallServicecenterWorkerCreateRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.WorkerDto != nil {
		paramMap["worker_dto"] = util.ConvertStruct(*req.WorkerDto)
	}
	return paramMap
}

func (req *TmallServicecenterWorkerCreateRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
